package com.ahu.qifei.fund.task;

import com.ahu.qifei.fund.common.enums.FenghuolunTaskStatusEnum;
import com.ahu.qifei.fund.service.IFenghuolunService;
import com.alibaba.fastjson.JSONArray;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * @author ShiQifei
 * @date 2020/11/25 13:26、
 * 风火轮任务
 */

@Configuration
@EnableScheduling
@Slf4j
public class FenghuolunTask {
    @Autowired
    IFenghuolunService fenghuolunService;
    /**
     * 每个工作日9点签到
     */
    @Scheduled(cron="0 0 9 ? * MON-FRI")
    public void signIn() {
        fenghuolunService.signIn("80092929", "songYUAN2324");
    }
}
